package com.kifas.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "tb_master_akun")
public class AkunMasterEntity implements Serializable {

	private static final long serialVersionUID = -6752872339476554361L;

	@Id
	@Column(name = "kd_akun", nullable = false)
	private String kodeAkun;

	private String nama;

	@Column(name = "id_parent_akun")
	private String idParentAkun;

	@Column(name = "is_active")
	private boolean active;

	@Column(name = "deskripsi")
	private String deskripsi;
	
	private String dk;
	
	@Column(name = "nama_panjang")
	private String namaPanjang;

	@ManyToOne
	@JoinColumn(name = "id_type", nullable = false)
	private TypeAkunEntity typeAkun;
	
	@Column(name= "created_by")
	private String createdBy;

	public AkunMasterEntity() {
	}

	public AkunMasterEntity(String kodeAkun, String nama, String idParentAkun,
			boolean active, String deskripsi, String dk, String namaPanjang,
			TypeAkunEntity typeAkun, String createdBy) {
		this.kodeAkun = kodeAkun;
		this.nama = nama;
		this.idParentAkun = idParentAkun;
		this.active = active;
		this.deskripsi = deskripsi;
		this.dk = dk;
		this.namaPanjang = namaPanjang;
		this.typeAkun = typeAkun;
		this.createdBy = createdBy;
	}

	public String getKodeAkun() {
		return kodeAkun;
	}

	public void setKodeAkun(String kodeAkun) {
		this.kodeAkun = kodeAkun;
	}

	public String getNama() {
		return nama;
	}

	public void setNama(String nama) {
		this.nama = nama;
	}

	public String getIdParentAkun() {
		return idParentAkun;
	}

	public void setIdParentAkun(String idParentAkun) {
		this.idParentAkun = idParentAkun;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public String getDeskripsi() {
		return deskripsi;
	}

	public void setDeskripsi(String deskripsi) {
		this.deskripsi = deskripsi;
	}

	public TypeAkunEntity getTypeAkun() {
		return typeAkun;
	}

	public void setTypeAkun(TypeAkunEntity typeAkun) {
		this.typeAkun = typeAkun;
	}


	public String getDk() {
		return dk;
	}


	public void setDk(String dk) {
		this.dk = dk;
	}


	public String getNamaPanjang() {
		return namaPanjang;
	}


	public void setNamaPanjang(String namaPanjang) {
		this.namaPanjang = namaPanjang;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}
	
}
